home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Games / MAME / src / machine / ticket.h < prev    next >
Text File  |  2000-04-04  |  1KB  |  35 lines

  1. /***************************************************************************
  2.  
  3.     Function prototypes and constants for the ticket dispenser emulator
  4.  
  5. ***************************************************************************/
  6.  
  7.  
  8. #define TICKET_MOTOR_ACTIVE_LOW    0    /* Ticket motor is triggered by D7=0 */
  9. #define TICKET_MOTOR_ACTIVE_HIGH   1    /* Ticket motor is triggered by D7=1 */
  10.  
  11. #define TICKET_STATUS_ACTIVE_LOW   0    /* Ticket is done dispensing when D7=0 */
  12. #define TICKET_STATUS_ACTIVE_HIGH  1    /* Ticket is done dispensing when D7=1 */
  13.  
  14. /***************************************************************************
  15.   ticket_dispenser_init
  16.  
  17.   msec       = how many milliseconds it takes to dispense a ticket
  18.   activehigh = see constants above
  19.  
  20. ***************************************************************************/
  21. void ticket_dispenser_init(int msec, int motoractivehigh, int statusactivehigh);
  22.  
  23.  
  24. /***************************************************************************
  25.   ticket_dispenser_r
  26. ***************************************************************************/
  27. READ_HANDLER( ticket_dispenser_r );
  28.  
  29.  
  30. /***************************************************************************
  31.   ticket_dispenser_w
  32. ***************************************************************************/
  33. WRITE_HANDLER( ticket_dispenser_w );
  34.  
  35.